package com.sz.mes.vo.warehouse;

import com.diboot.core.binding.annotation.*;
import com.sz.mes.entity.warehouse.Shelves;
import com.sz.mes.entity.warehouse.Area;
import com.diboot.iam.entity.IamUser;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
* 货区货架 DetailVO定义
* @author hem
* @version 1.0
* @date 2023-05-25
 * Copyright © szhs
*/
@Getter @Setter @Accessors(chain = true)
public class ShelvesDetailVO extends Shelves  {
    private static final long serialVersionUID = 81679082477625477L;

    /**
    * 关联字段 库区名称：Area.areaName 
    */
    @BindField(entity = Area.class, field = "areaName", condition = "this.warehouse_area_id=id")
    private String warehouseAreaAreaName;

    /**
    * 关联字段 系统用户.真实姓名：IamUser.realname 
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.create_by=id")
    private String createByName;

    /**
    * 关联字段 系统用户.真实姓名：IamUser.realname 
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.update_by=id")
    private String updateByName;

}